﻿package mlc.haxe.input;
import hsl.haxe.NullSignaler;
import hsl.haxe.Signaler;
import mlc.haxe.input.ConsoleInputSource;

/**
 * A null object implementation of the console input source interface.
 */
class NullInputSource implements ConsoleInputSource {
	public var inputReceivedSignaler(default, null):Signaler<String>;
	/**
	 * Creates a new null input source.
	 */
	public function new():Void {
		inputReceivedSignaler = new NullSignaler<String>(this);
	}
	#if debug
	private function toString():String {
		return "[ConsoleInputSource]";
	}
	#end
}